PKG_SOURCE_URL:=https://nodejs.org/dist/v$(PKG_VERSION)
PKG_HASH:=6c4e31ed5702dc45cfd8c435af56a36a474427e1bd7afe74c346136060beba8a
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
+NODEJS_BIN_SUM:=9d942932535988091034dc94cc5f42b6dc8784d6366df3a36c4c9ccb3996f0c2
HOST_BUILD_DIR:=$(BUILD_DIR_HOST)/$(PKG_NAME)-v$(PKG_VERSION)
HOST_BUILD_DEPENDS:=python3/host
HOST_BUILD_PARALLEL:=1
-
-PKG_BUILD_DEPENDS:=python3/host
-PKG_BUILD_PARALLEL:=1
-PKG_INSTALL:=1
-PKG_ASLR_PIE:=0
+PKG_HOST_ONLY:=1
include $(INCLUDE_DIR)/host-build.mk
include $(INCLUDE_DIR)/package.mk
SUBMENU:=Node.js
TITLE:=Node.js is a platform built on Chrome's JavaScript runtime
URL:=https://nodejs.org/
- DEPENDS:=@HAS_FPU @(i386||x86_64||arm||aarch64) @BROKEN \
- +libstdcpp +libopenssl +zlib +libnghttp2 \
- +libcares +libatomic +NODEJS_ICU_SYSTEM:icu +NODEJS_ICU_SYSTEM:icu-full-data
ABI_VERSION:=$(NODE_MODULE_VERSION)
+ BUILDONLY:=1
endef
define Package/node/description
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js uses
an event-driven, non-blocking I/O model that makes it lightweight and efficient. Node.js'
package ecosystem, npm, is the largest ecosystem of open source libraries in the world.
-
- *** The following preparations must be made on the host side. ***
- 1. gcc 10.1 or higher is required.
- 2. To build a 32-bit target, gcc-multilib, g++-multilib are required.
- 3. Requires libatomic package. (If necessary, install the 32-bit library at the same time.)
- ex) sudo apt-get install gcc-multilib g++-multilib
-endef
-
-define Package/node-npm
- SECTION:=lang
- CATEGORY:=Languages
- SUBMENU:=Node.js
- TITLE:=NPM stands for Node Package Manager
- URL:=https://www.npmjs.com/
- DEPENDS:=+node
endef
-define Package/node-npm/description
- NPM is the package manager for NodeJS
-endef
-
-define Package/node/config
- if PACKAGE_node
- choice
- prompt "i18n features"
- default NODEJS_ICU_SMALL
- help
- Select i18n features
-
- config NODEJS_ICU_NONE
- bool "Disable"
-
- config NODEJS_ICU_SMALL
- bool "small-icu"
-
- config NODEJS_ICU_SYSTEM
- depends on ARCH_64BIT
- bool "system-icu"
- endchoice
- endif
-endef
-
-NODEJS_CPU:=$(subst aarch64,arm64,$(subst x86_64,x64,$(subst i386,ia32,$(ARCH))))
-
-ifneq ($(CONFIG_ARCH_64BIT),y)
-FORCE_32BIT:=-m32
-endif
-
-MAKE_VARS+= \
- DESTCPU=$(NODEJS_CPU) \
- NO_LOAD='cctest.target.mk embedtest.target.mk node_mksnapshot.target.mk overlapped-checker.target.mk \
- mkcodecache.target.mk tools/v8_gypfiles/torque_base.target.mk tools/v8_gypfiles/v8_init.target.mk' \
- LD_LIBRARY_PATH=$(STAGING_DIR_HOSTPKG)/share/icu/current/lib
-
HOST_MAKE_VARS+=NO_LOAD='cctest.target.mk embedtest.target.mk overlapped-checker.target.mk'
-CONFIGURE_VARS:= \
- CC="$(TARGET_CC) $(TARGET_OPTIMIZATION)" \
- CXX="$(TARGET_CXX) $(TARGET_OPTIMIZATION)" \
- CC_host="$(HOSTCC) $(FORCE_32BIT)" \
- CXX_host="$(HOSTCXX) $(FORCE_32BIT)"
-
-CONFIGURE_ARGS:= \
- --dest-cpu=$(NODEJS_CPU) \
- --dest-os=linux \
- --cross-compiling \
- --shared-zlib \
- --shared-openssl \
- --shared-nghttp2 \
- --shared-cares \
- --with-intl=$(if $(CONFIG_NODEJS_ICU_SMALL),small-icu,$(if $(CONFIG_NODEJS_ICU_SYSTEM),system-icu,none)) \
- $(if $(findstring +neon",$(CONFIG_CPU_TYPE)),--with-arm-fpu=neon) \
- $(if $(findstring +neon-vfpv4",$(CONFIG_CPU_TYPE)),--with-arm-fpu=neon) \
- $(if $(findstring +vfpv4",$(CONFIG_CPU_TYPE)),--with-arm-fpu=vfpv3) \
- $(if $(findstring +vfp",$(CONFIG_CPU_TYPE)),--with-arm-fpu=vfp) \
- $(if $(findstring +vfpv3",$(CONFIG_CPU_TYPE)),--with-arm-fpu=vfpv3) \
- $(if $(findstring +vfpv3-d16",$(CONFIG_CPU_TYPE)),--with-arm-fpu=vfpv3-d16) \
- --prefix=/usr
-
HOST_CONFIGURE_VARS:=
-
HOST_CONFIGURE_ARGS:= \
--dest-os=$(if $(findstring Darwin,$(HOST_OS)),mac,linux) \
--with-intl=small-icu \
--prefix=$(STAGING_DIR_HOSTPKG)
-define Build/InstallDev
- $(INSTALL_DIR) $(1)/usr/include
- $(CP) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
+ifeq ($(HOST_ARCH),x86_64)
+
+NODEJS_BIN:=node-v$(PKG_VERSION)-linux-x64.tar.gz
+
+define Download/nodebin
+ URL:=https://nodejs.org/download/release/v$(PKG_VERSION)/
+ FILE:=$(NODEJS_BIN)
+ HASH:=$(NODEJS_BIN_SUM)
endef
-define Package/node/install
- $(INSTALL_DIR) $(1)/usr/bin
- $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/node $(1)/usr/bin/
+define Host/Prepare
+ $(eval $(call Download,nodebin))
endef
-define Package/node-npm/install
- $(INSTALL_DIR) $(1)/usr/lib/node_modules/npm
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/{package.json,LICENSE} \
- $(1)/usr/lib/node_modules/npm/
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/README.md \
- $(1)/usr/lib/node_modules/npm/
- $(CP) $(PKG_INSTALL_DIR)/usr/lib/node_modules/npm/{node_modules,bin,lib} \
- $(1)/usr/lib/node_modules/npm/
- $(INSTALL_DIR) $(1)/usr/bin
- $(LN) ../lib/node_modules/npm/bin/npm-cli.js $(1)/usr/bin/npm
- $(LN) ../lib/node_modules/npm/bin/npx-cli.js $(1)/usr/bin/npx
+define Host/Configure
+ # nothing to do
+endef
+
+define Host/Compile
+ # nothing to do
endef
+define Host/Install
+ rm -f $(1)/bin/npm
+ rm -f $(1)/bin/npx
+ rm -rf $(1)/lib/node_modules/npm
+ rm -f $(1)/bin/corepack
+ rm -rf $(1)/lib/node_modules/corepack
+ $(TAR) xvf $(DL_DIR)/$(NODEJS_BIN) -C $(1) --strip-components=1
+ mv $(1)/{CHANGELOG.md,LICENSE,README.md} $(1)/lib/node_modules/
+endef
+
+else
define Host/Install
rm -f $(1)/bin/npm
rm -f $(1)/bin/npx
rm -rf $(1)/lib/node_modules/corepack
$(call Host/Install/Default)
endef
+endif
$(eval $(call HostBuild))
$(eval $(call BuildPackage,node))
-$(eval $(call BuildPackage,node-npm))
+++ /dev/null
---- a/lib/internal/modules/cjs/loader.js
-+++ b/lib/internal/modules/cjs/loader.js
-@@ -1811,7 +1811,8 @@ Module._initPaths = function() {
- path.resolve(process.execPath, '..') :
- path.resolve(process.execPath, '..', '..');
-
-- const paths = [path.resolve(prefixDir, 'lib', 'node')];
-+ const paths = [path.resolve(prefixDir, 'lib', 'node'),
-+ path.resolve(prefixDir, 'lib', 'node_modules')];
-
- if (homeDir) {
- ArrayPrototypeUnshift(paths, path.resolve(homeDir, '.node_libraries'));
+++ /dev/null
---- a/deps/v8/src/base/platform/condition-variable.cc
-+++ b/deps/v8/src/base/platform/condition-variable.cc
-@@ -20,7 +20,7 @@ namespace base {
-
- ConditionVariable::ConditionVariable() {
- #if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
-- (V8_OS_LINUX && V8_LIBC_GLIBC))
-+ V8_OS_LINUX)
- // On Free/Net/OpenBSD and Linux with glibc we can change the time
- // source for pthread_cond_timedwait() to use the monotonic clock.
- pthread_condattr_t attr;
-@@ -96,7 +96,7 @@ bool ConditionVariable::WaitFor(Mutex* m
- &native_handle_, &mutex->native_handle(), &ts);
- #else
- #if (V8_OS_FREEBSD || V8_OS_NETBSD || V8_OS_OPENBSD || \
-- (V8_OS_LINUX && V8_LIBC_GLIBC))
-+ V8_OS_LINUX)
- // On Free/Net/OpenBSD and Linux with glibc we can change the time
- // source for pthread_cond_timedwait() to use the monotonic clock.
- result = clock_gettime(CLOCK_MONOTONIC, &ts);
---- a/deps/v8/src/base/platform/platform-posix.cc
-+++ b/deps/v8/src/base/platform/platform-posix.cc
-@@ -1207,7 +1207,7 @@ bool Thread::Start() {
- #if V8_OS_DARWIN
- // Default on Mac OS X is 512kB -- bump up to 1MB
- stack_size = 1 * 1024 * 1024;
--#elif V8_OS_AIX
-+#elif V8_OS_AIX || !defined(__GLIBC__)
- // Default on AIX is 96kB -- bump up to 2MB
- stack_size = 2 * 1024 * 1024;
- #endif
---- a/deps/v8/src/codegen/external-reference-table.cc
-+++ b/deps/v8/src/codegen/external-reference-table.cc
-@@ -10,7 +10,7 @@
- #include "src/ic/stub-cache.h"
- #include "src/logging/counters.h"
-
--#if defined(DEBUG) && defined(V8_OS_LINUX) && !defined(V8_OS_ANDROID)
-+#if defined(DEBUG) && defined(V8_OS_LINUX) && !defined(V8_OS_ANDROID) && defined(V8_LIBC_GLIBC)
- #define SYMBOLIZE_FUNCTION
- #include <execinfo.h>
-
+++ /dev/null
---- a/deps/uv/uv.gyp
-+++ b/deps/uv/uv.gyp
-@@ -156,6 +156,7 @@
- 'target_name': 'libuv',
- 'toolsets': ['host', 'target'],
- 'type': '<(uv_library)',
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- 'include',
- 'src/',
+++ /dev/null
---- a/deps/zlib/zlib.gyp
-+++ b/deps/zlib/zlib.gyp
-@@ -8,6 +8,7 @@
- 'use_system_zlib%': 0,
- 'arm_fpu%': '',
- },
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'conditions': [
- ['use_system_zlib==0', {
- 'targets': [
+++ /dev/null
---- a/node.gyp
-+++ b/node.gyp
-@@ -1138,6 +1138,7 @@
- 'includes': [
- 'node.gypi'
- ],
-+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
- 'include_dirs': [
- 'src',
- 'tools/msvs/genfiles',
-@@ -1334,6 +1335,7 @@
- 'tools',
- 'src',
- ],
-+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
- 'sources': [
- 'tools/js2c.cc',
- 'tools/executable_wrapper.h',
+++ /dev/null
---- a/tools/icu/icu-generic.gyp
-+++ b/tools/icu/icu-generic.gyp
-@@ -106,6 +106,7 @@
- 'sources': [
- '<@(icu_src_i18n)'
- ],
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(icu_path)/source/i18n',
- ],
-@@ -114,6 +115,7 @@
- ],
- 'dependencies': [ 'icuucx', 'icu_implementation', 'icu_uconfig', 'icu_uconfig_target' ],
- 'direct_dependent_settings': {
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(icu_path)/source/i18n',
- ],
-@@ -223,6 +225,7 @@
- # full data - no trim needed
- 'sources': [ '<(SHARED_INTERMEDIATE_DIR)/icudt<(icu_ver_major)_dat.<(icu_asm_ext)' ],
- 'dependencies': [ 'genccode#host', 'icupkg#host', 'icu_implementation#host', 'icu_uconfig' ],
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(icu_path)/source/common',
- ],
-@@ -307,6 +310,7 @@
- # This file contains the small ICU data
- 'sources': [ '<(SHARED_INTERMEDIATE_DIR)/icusmdt<(icu_ver_major)_dat.<(icu_asm_ext)' ],
- # for umachine.h
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(icu_path)/source/common',
- ],
-@@ -323,6 +327,7 @@
- 'sources': [
- '<@(icu_src_stubdata)'
- ],
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(icu_path)/source/common',
- ],
-@@ -362,6 +367,7 @@
- '_XOPEN_SOURCE_EXTENDED=0',
- ]}],
- ],
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(icu_path)/source/common',
- ],
-@@ -371,6 +377,7 @@
- 'cflags_c': ['-std=c99'],
- 'export_dependent_settings': [ 'icu_uconfig', 'icu_uconfig_target' ],
- 'direct_dependent_settings': {
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(icu_path)/source/common',
- ],
-@@ -401,6 +408,7 @@
- '<(icu_path)/source/tools/toolutil/dbgutil.cpp',
- '<(icu_path)/source/tools/toolutil/dbgutil.h',
- ],
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(icu_path)/source/common',
- '<(icu_path)/source/i18n',
-@@ -420,6 +428,7 @@
- }]
- ],
- 'direct_dependent_settings': {
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(icu_path)/source/common',
- '<(icu_path)/source/i18n',
-@@ -441,6 +450,7 @@
- 'target_name': 'genrb',
- 'type': 'executable',
- 'toolsets': [ 'host' ],
-+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
- 'dependencies': [ 'icutools', 'icu_implementation' ],
- 'sources': [
- '<@(icu_src_genrb)'
-@@ -463,6 +473,7 @@
- 'target_name': 'iculslocs',
- 'toolsets': [ 'host' ],
- 'type': 'executable',
-+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
- 'dependencies': [ 'icutools' ],
- 'sources': [
- 'iculslocs.cc',
-@@ -481,6 +492,7 @@
- 'target_name': 'icupkg',
- 'toolsets': [ 'host' ],
- 'type': 'executable',
-+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
- 'dependencies': [ 'icutools' ],
- 'sources': [
- '<@(icu_src_icupkg)',
-@@ -498,6 +510,7 @@
- 'target_name': 'genccode',
- 'toolsets': [ 'host' ],
- 'type': 'executable',
-+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
- 'dependencies': [ 'icutools' ],
- 'sources': [
- '<@(icu_src_genccode)',
+++ /dev/null
---- a/tools/v8_gypfiles/v8.gyp
-+++ b/tools/v8_gypfiles/v8.gyp
-@@ -86,6 +86,7 @@
- ],
- 'hard_dependency': 1,
- 'direct_dependent_settings': {
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)',
- ],
-@@ -207,6 +208,7 @@
- '<@(torque_outputs_cc)',
- '<@(torque_outputs_inc)',
- ],
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)',
- ],
-@@ -228,6 +230,7 @@
- 'sources': [
- '<(generate_bytecode_builtins_list_output)',
- ],
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(generate_bytecode_output_root)',
- '<(SHARED_INTERMEDIATE_DIR)',
-@@ -266,6 +269,7 @@
- 'sources': [
- '<(V8_ROOT)/src/init/setup-isolate-full.cc',
- ],
-+ 'include_dirs': [ '../../deps/v8/third_party/abseil-cpp', '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
- }, # v8_init
- {
- # This target is used to work around a GCC issue that causes the
-@@ -307,9 +311,11 @@
- 'v8_pch',
- 'v8_abseil',
- ],
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(SHARED_INTERMEDIATE_DIR)',
- '<(generate_bytecode_output_root)',
-+ '../../deps/v8/third_party/abseil-cpp', '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
- ],
- 'sources': [
- '<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "\\"v8_initializers.*?sources = ")',
-@@ -838,6 +844,7 @@
- 'toolsets': ['host', 'target'],
- 'direct_dependent_settings': {
- 'sources': ['<!@pymod_do_main(GN-scraper "<(V8_ROOT)/BUILD.gn" "v8_compiler_sources = ")'],
-+ 'include_dirs': [ '../../deps/v8/third_party/abseil-cpp', '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
- 'conditions': [
- ['v8_target_arch=="ia32"', {
- 'sources': [
-@@ -952,6 +959,8 @@
- 'target_name': 'v8_turboshaft',
- 'type': 'static_library',
- 'toolsets': ['host', 'target'],
-+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
-+ 'include_dirs': [ '../../deps/v8/third_party/abseil-cpp', '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
- 'dependencies': [
- 'generate_bytecode_builtins_list',
- 'run_torque',
-@@ -991,6 +1000,7 @@
- 'run_torque',
- 'v8_maybe_icu',
- ],
-+ 'include_dirs': [ '../../deps/v8/third_party/abseil-cpp', '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
- 'conditions': [
- ['(is_component_build and not v8_optimized_debug and v8_enable_fast_mksnapshot) or v8_enable_turbofan==0', {
- 'dependencies': [
-@@ -1033,6 +1043,7 @@
- ],
- 'includes': ['inspector.gypi'],
- 'direct_dependent_settings': {
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(generate_bytecode_output_root)',
- '<(SHARED_INTERMEDIATE_DIR)',
-@@ -1692,6 +1703,7 @@
- }],
- ],
- 'direct_dependent_settings': {
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(V8_ROOT)/include',
- ],
-@@ -1712,6 +1724,7 @@
- {
- 'target_name': 'bytecode_builtins_list_generator',
- 'type': 'executable',
-+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
- 'conditions': [
- ['want_separate_host_toolset', {
- 'toolsets': ['host'],
-@@ -1740,6 +1753,9 @@
- {
- 'target_name': 'mksnapshot',
- 'type': 'executable',
-+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
-+ 'library_dirs':[ '../../../../staging_dir/hostpkg/share/icu/current/lib' ],
-+ 'include_dirs': [ '../../deps/v8/third_party/abseil-cpp', '<!@(echo "$STAGING_DIR"/usr/../usr/include)' ],
- 'dependencies': [
- 'v8_base_without_compiler',
- 'v8_compiler_for_mksnapshot',
-@@ -1768,6 +1784,7 @@
- {
- 'target_name': 'torque',
- 'type': 'executable',
-+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
- 'dependencies': [
- 'torque_base',
- # "build/win:default_exe_manifest",
-@@ -1810,6 +1827,7 @@
- {
- 'target_name': 'torque-language-server',
- 'type': 'executable',
-+ 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
- 'conditions': [
- ['want_separate_host_toolset', {
- 'toolsets': ['host'],
-@@ -1841,6 +1859,8 @@
- {
- 'target_name': 'gen-regexp-special-case',
- 'type': 'executable',
-+ 'libraries!':[ '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
-+ 'library_dirs':[ '../../../../staging_dir/hostpkg/share/icu/current/lib' ],
- 'dependencies': [
- 'v8_libbase',
- # "build/win:default_exe_manifest",
-@@ -2081,6 +2101,7 @@
- }],
- ],
- 'direct_dependent_settings': {
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(V8_ROOT)/include',
- ],
-@@ -2220,15 +2241,19 @@
- }],
- ],
- 'direct_dependent_settings': {
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(V8_ROOT)/third_party/zlib',
- '<(V8_ROOT)/third_party/zlib/google',
-+ '../../deps/v8/third_party/abseil-cpp', '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
- ],
- },
- 'defines': [ 'ZLIB_IMPLEMENTATION' ],
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'include_dirs': [
- '<(V8_ROOT)/third_party/zlib',
- '<(V8_ROOT)/third_party/zlib/google',
-+ '../../deps/v8/third_party/abseil-cpp', '<!@(echo "$STAGING_DIR"/usr/../usr/include)',
- ],
- 'sources': [
- '<(V8_ROOT)/third_party/zlib/adler32.c',
-@@ -2273,6 +2298,7 @@
- 'variables': {
- 'ABSEIL_ROOT': '../../deps/v8/third_party/abseil-cpp',
- },
-+ 'include_dirs!': [ '<!@(echo "$STAGING_DIR"/usr/include)' ],
- 'direct_dependent_settings': {
- 'include_dirs': [
- '<(ABSEIL_ROOT)',
+++ /dev/null
-Description: do not use dns.ADDRCONFIG for localhost
- it fails on IPv6-only systems. Setting it with libc fails on linux.
- https://github.com/nodejs/node/issues/33279
-Last-Update: 2020-06-11
-Bug-Debian: https://bugs.debian.org/962318
-Forwarded: https://github.com/nodejs/node/issues/33816
---- a/lib/net.js
-+++ b/lib/net.js
-@@ -1,4 +1,5 @@
- // Copyright Joyent, Inc. and other Node contributors.
-+
- //
- // Permission is hereby granted, free of charge, to any person obtaining a
- // copy of this software and associated documentation files (the
-@@ -1368,13 +1369,6 @@ function lookupAndConnect(self, options)
- hints: options.hints || 0,
- };
-
-- if (!isWindows &&
-- dnsopts.family !== 4 &&
-- dnsopts.family !== 6 &&
-- dnsopts.hints === 0) {
-- dnsopts.hints = dns.ADDRCONFIG;
-- }
--
- debug('connect: find host', host);
- debug('connect: dns options', dnsopts);
- self._host = host;
+++ /dev/null
---- a/node.gyp
-+++ b/node.gyp
-@@ -1139,6 +1139,7 @@
- 'node.gypi'
- ],
- 'libraries!':[ '-licui18n', '-licuuc', '-licudata', '-lcrypto', '-lssl', '-lz', '-lhttp_parser', '-luv', '-lnghttp2', '-lcares' ],
-+ 'cflags!': ['-mbranch-protection=standard'],
- 'include_dirs': [
- 'src',
- 'tools/msvs/genfiles',